/*
 * @Author: qsy
 * @Date: 2024-04-08 14:37:19
 * @LastEditors: qsy
 * @LastEditTime: 2025-04-06 15:48:28
 * @Description: 串口1头
 */
#ifndef MY_UART_H
#define MY_UART_H
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/uart.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"


#define GPIO_NUM_TXD (23)
#define GPIO_NUM_RXD (22)

#define EX_UART_NUM UART_NUM_1
#define PATTERN_CHR_NUM    (3)         /*!< Set the number of consecutive and identical characters received by receiver which defines a UART pattern*/

#define BUF_SIZE (512)
#define RD_BUF_SIZE (BUF_SIZE)
extern QueueHandle_t uart0_queue;
// extern char *TAG;
extern int8_t* dtmp;

extern void uart_init(void);
extern void uart_task(void);


#endif // !MY_UART_H